845abd1473ffb79d4a94e172a1cf7362634eaa0f,src/test/java/com/google/api/gax/grpc/UnaryCallableTest.java,UnaryCallableTest,pagedFixedSizeCollectionTooManyElements,#,442
Before Change
@Test(expected = ValidationException.class)
public void pagedFixedSizeCollectionTooManyElements() {
Mockito.when(callIntList.futureCall((Integer) Mockito.any(), (CallContext) Mockito.any()))
.thenReturn(Futures.<List<Integer>>immediateFuture(Lists.newArrayList(0, 1, 2)))
.thenReturn(Futures.<List<Integer>>immediateFuture(Lists.newArrayList(3, 4)))
.thenReturn(Futures.immediateFuture(Collections.<Integer>emptyList()));
UnaryCallable.<Integer, List<Integer>>create(callIntList)
After Change
@Test(expected = ValidationException.class)
public void pagedFixedSizeCollectionTooManyElements() {
Mockito.when(callIntList.futureCall((Integer) Mockito.any(), (CallContext) Mockito.any()))
.thenReturn(immediateFuture(Arrays.asList(0, 1, 2)))
.thenReturn(immediateFuture(Arrays.asList(3, 4)))
.thenReturn(immediateFuture(Collections.<Integer>emptyList()));
UnaryCallable.<Integer, List<Integer>>create(callIntList)